package com.example.my_invitation_service.services.impl;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.my_invitation_service.entity.Domainname;
import com.example.my_invitation_service.mappers.DomainnameMapper;
import com.example.my_invitation_service.services.DomainnameService;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
* @author Administrator
* @description 针对表【domainname(域名表)】的数据库操作Service实现
* @createDate 2024-11-20 13:06:21
*/
@Service
public class DomainnameServiceImpl extends ServiceImpl<DomainnameMapper, Domainname>
    implements DomainnameService {

    @Override
    public Domainname getActive(Serializable active) {
        QueryWrapper<Domainname> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("activate", active);
        return super.getOne(queryWrapper);
    }
}




